* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

:root {
  /* main color of site */
  --main-color: rgb(9, 9, 9, 0.4);
  /* secondary color of site */
  --secondary-color: rgb(164, 28, 19, 1);
  /* body color */
  --body-color: rgb(217, 39, 27, 1);
  /*order color */
  --order-color: rgb(255, 179, 31, 1);
}

#event {
  font-family: dana;
  position: fixed;
  background-color: var(--secondary-color);
  top: -180px;
  z-index: 100;
  width: 100%;
  transition: 1s;
  opacity: 0;
  padding: 10px;
  box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
  color: #fff;
  border-bottom-left-radius: 15px;
  border-bottom-right-radius: 15px;
}
#event p {
  text-align: center;
}
#event button {
  padding: 5px 10px;
  border: none;
  border-radius: 5px;
  font-family: inherit;
  background-color: transparent;
}

.back-home {
  position: absolute;
  width: 85px;
  height: 80px;
  top: 0;
  right: 0;
  font-weight: 900;
  font-size: 1.2rem;
  z-index: 100;
  display: flex;
  justify-content: center;
  color: #fff;
  background: var(--secondary-color);
}
.back-home img {
  width: 35px;
}

body {
  font-family: dana;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  background-color: rgb(255, 255, 255, 1);
}

a {
  color: inherit;
  text-decoration: none;
}

/* container of templates */
.container {
  margin: auto !important;
  height: 100vh;
  width: 700px;
}
.mainMenu {
  width: 100%;
  height: 100%;
}
.first-slide {
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-direction: column;
  gap: 2em;
}

.logo {
  width: 150px;
}
.logo img {
  width: 100%;
  object-fit: contain;
}

#categories {
  display: flex;
  flex-direction: column;
  gap: 0.825em;
  max-height: 438px !important;
}
.categories-item {
  background-color: var(--main-color);
  padding: 10px 15px;
  border-radius: 40px;
  text-align: center;
  cursor: pointer;
}

.social-media {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.social-media a {
  width: 48px;
  height: 48px;
  background-color: var(--main-color);
  border-radius: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
}
.social-media a img {
  display: block;
}

.second-slide {
  display: flex;
  gap: 10px;
  max-height: 100svh;
}

.waiter-open-modal-btn:hover {
  box-shadow: rgba(0, 0, 0, 0.17) 0px -23px 25px 0px inset,
    rgba(0, 0, 0, 0.15) 0px -36px 30px 0px inset,
    rgba(0, 0, 0, 0.1) 0px -79px 40px 0px inset, rgba(0, 0, 0, 0.06) 0px 2px 1px,
    rgba(0, 0, 0, 0.09) 0px 4px 2px, rgba(0, 0, 0, 0.09) 0px 8px 4px,
    rgba(0, 0, 0, 0.09) 0px 16px 8px, rgba(0, 0, 0, 0.09) 0px 32px 16px;
}

.waiter-open-modal-btn {
  position: absolute;
  width: 85px;
  height: 80px;
  top: 80px;
  right: 0;
  font-size: 12px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 8px;
  color: #fff;
  background-color: var(--main-color);
  transition: 0.6s;
  outline: none;
  border: none;
  font-family: dana;
}

#subCategories {
  max-height: 100svh;
  width: 85px;
  background-color: var(--secondary-color);
  margin-top: 160px;
  position: sticky;
  top: 0;
  padding-right: 10px;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 35px;
  padding-block: 1.5em;
  color: #fff;
  padding-bottom: 100px;
}
.subCategories-item {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: 100%;
  border-radius: 15px;
  padding: 10px 0;
  text-align: center;
}
.subCategories-item svg {
  width: 36px;
  height: 37px;
}
.subCategories-item svg path {
  stroke: #fff;
}
.subCategories-item p {
  font-size: 0.72rem;
  font-weight: 400;
  position: relative;
  z-index: 10;
  white-space: pre;
  text-wrap: wrap !important;
  padding: 4px;
}
.swiper-slide.second-slide {
  background-color: var(--body-color);
}

.subCategories-item.active {
  position: relative;
  background-color: var(--body-color);
}
.subCategories-item.active::before,
.subCategories-item.active::after {
  --border-radius: 1rem;

  content: "";
  position: absolute;
  width: var(--border-radius);
  height: var(--border-radius);
  left: 0;
  background-color: var(--secondary-color);
}
.subCategories-item.active.en::before,
.subCategories-item.active.en::after {
  left: 80%;
  transform: scaleX(-1);
}

.subCategories-item.active::before {
  top: calc(var(--border-radius) * -1);
  border-radius: 0 100vw 0 100vw;
  box-shadow: -10px 10px 0px 10px var(--body-color);
}
.subCategories-item.active::after {
  bottom: calc(var(--border-radius) * -1);
  border-radius: 100vw 0 100vw 0;
  box-shadow: -10px -8px 0px 10px var(--body-color);
}

#foods {
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 90svh;
  overflow-x: scroll;
  position: sticky;
  top: 0;
  width: 73%;
  padding-block: 1.4em;
}
#foods .item.sub-category-description{
  min-height: 85px;
  cursor: unset !important;
}
#foods .item.sub-category-description .item-details p:last-child{
  background:none !important;
  height: auto !important;
  margin: 0px !important;
  padding: 0px !important;
}
#foods .item {
  width: 100%;
  padding: 10px;
  font-size: 0.825rem;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: var(--secondary-color);
  border-radius: 24px;
  height: 100px;
  cursor: pointer;
}

#foods > .item .item-details {
  padding-right: 4px;
}
#foods > .item .item-details .item-title p:first-child,
#foods .item .item-details p:last-child {
  background-color: var(--order-color);
  width: fit-content;
  height: 26px;
  border-radius: 8px;
  margin-right: -3.5px;
  padding: 0px 4px;
  display: flex;
  align-items: center;
}
#foods > .item .item-details .item-title p:last-child {
  background-color: unset;
}
.food-img {
  width: 65px;
  height: 65px;
}
.food-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.note_box_container {
  background-color: var(--body-color) !important;
}
.menu_logo_box {
  background-color: var(--order-color) !important;
}
.menu_logo_box > img,
.food-note_options > img {
  filter: invert(1);
}
.food-note_text,
#food_count {
  color: rgb(0, 0, 0, 1) !important;
}

.item-title p:nth-child(2) {
  color: rgba(255, 255, 255, 1);
}
.item-title {
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

/* .item-details > p::after {
  content: "تومان";
  margin-right: 5px;
} */

#popup {
  width: 100%;
  height: 100vh;
  position: absolute;
  transition: 1s;
  top: 100vh;
  opacity: 0;
  z-index: 100;
  background: var(--secondary-color);
}
#popup-container {
  height: 85svh;
  overflow-y: scroll;
}
#popup-container .back {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2000;
  background-color: #6e6e6e94;
  display: flex;
  background: #607b42;
  border-radius: 100px;
}

.gallery {
  width: 100%;
  height: 400px;
  background-color: white;
  border-radius: 0 0 25px 25px;
}

.gallery .swiper-slide {
  width: 95%;
}

.gallery .swiper-slide img {
  width: 100%;
  height: 90%;
  object-fit: contain;
}
.gallery .swiper-pagination-bullet-active {
  background-color: var(--order-color);
  width: 25px !important;
  height: 5px;
  border-radius: 4px;
}
.gallery .swiper-pagination-bullet {
  transition: 0.6s;
  height: 5px;
  width: 5px;
}
.title {
  margin-right: 16px;
}
.title p:first-child {
  color: rgb(255, 255, 255, 1);
  font-weight: 600;
}
.title p:last-child {
  color: rgb(255, 255, 255, 1);
  font-weight: 500;
}
.description {
  margin: 12px 16px 24px 16px;
  font-weight: 400;
  font-size: 14px;
  color: rgb(255, 255, 255, 1);
}
#desc {
  background-color: var(--main-color);
  padding: 10px 16px;
  text-align: center;
  display: inline-block;
  width: auto;
  margin: 0 auto;
  margin-top: -10px;
  border-radius: 40px;
  margin-bottom: 15px;
}
#desc:empty {
  display: none;
}
#sizes {
  display: flex;
  justify-content: space-between;
  padding-inline: 16px;
}
.size {
  color: rgba(255, 255, 255, 1);
  padding: 10px 8px;
  border: 1px solid rgba(255, 255, 255, 1);
  min-width: 98px;
  text-align: center;
  border-radius: 16px;
}
.size.active-size {
  background: var(--body-color);
  color: rgba(255, 255, 255, 1);
  border-color: var(--body-color);
}

#price-video {
  height: 60px;
  margin-inline: 16px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#price-video div {
  background-color: var(--body-color);
  padding: 10px 8px;
  border-radius: 16px;
  display: flex;
  gap: 5px;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 1);
}
#price-video div img {
  width: 24px;
}
#price-video p {
  font-size: 24px;
  font-weight: 600;
  color: rgba(255, 255, 255, 1);
}
#price-video p::after {
  content: "تومان";
  margin-right: 5px;
  font-size: 16px;
  font-weight: 400;
}
#video-holder {
  margin-inline: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
  transition: 0.6s;
}
#video-holder video {
  width: 100%;
  height: 0;
  transition: 0.6s;
  margin-top: 20px;
}

@media screen and (max-width: 700px) {
  .container {
    margin: auto !important;
    height: 100vh;
    width: 100%;
  }
}

.note_detail_box_container {
  z-index: 100;
  background-color: var(--secondary-color) !important ;
}

.food-note {
  background-color: var(--order-color) !important ;
}

.note-header {
  background-color: var(--order-color) !important ;
}
.note-title_text {
  color: rgb(0, 0, 0, 1) !important ;
}
.table-sum-box {
  background-color: rgba(169, 209, 156, 1) !important;
}

#change-data {
  display: none;
}
.modal {
  display: none;
  position: fixed;
  z-index: 1;
  padding-top: 100px;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgb(0, 0, 0);
  background-color: rgba(0, 0, 0, 0.4);
}
.modal-content {
  position: fixed;
  top: 40%;
  right: 33%;
  background-color: #fefefe;
  margin: auto;
  padding: 20px;
  border: 1px solid #888;
  border-radius: 7px;
  width: 30%;
}
div.modal-content div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 110px;
}
div.modal-content div p {
  font-family: dana;
  text-align: center;
}

@media screen and (max-width: 314px) {
  .modal-content {
    right: 4%;
    width: 92%;
  }
}
@media screen and (max-width: 370px) and (min-width: 315px) {
  .modal-content {
    right: 18%;
    width: 65%;
  }
}
@media screen and (max-width: 531px) and (min-width: 371px) {
  .modal-content {
    right: 22.5%;
    width: 55%;
  }
}
@media screen and (max-width: 1024px) and (min-width: 951px) {
  .modal-content {
    right: 33%;
    width: 34%;
  }
}

div#address, div#club, div#instagram{
  gap: 0px;
}
div#club img, div#website img  , div#address img  {
  width: 32px;
}
a#earth img {
  width: 24px;
  cursor: pointer;
}
#overlay{
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
}
#overlay.earth div.modal-content{
  width: 350px;
  position: unset;
  top: unset;
  right: unset;
  background: rgba(255, 255, 255, 0.1); 
  z-index: 1;  
}
#overlay.earth div.modal-content div{
  min-height: fit-content !important;
}
#overlay.earth div.modal-content #close{
  align-items: baseline;
  padding-right: 7px;
}
#overlay.earth div.modal-content #close span{
  cursor: pointer;
}
#overlay.earth div.modal-content div.details{
  gap: 27px;
}
#overlay.earth .social-media{
  flex-direction: row;
  gap: 30px;
}
#overlay.earth .social-media a{
  cursor: pointer;
}
#overlay.earth #address{
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  column-gap: 18px;
  font-size: 15px;
}
.modal-content,
#overlay.earth .social-media {
  overflow: visible;
}

/* base circle button */
#overlay.earth .social-media a{
  position: relative;            /* for pseudo-elements */
  width: 46px;                   /* outer diameter of the button */
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;                    /* above pseudo-elements */
  text-decoration: none;
  overflow: visible;             /* allow rings outside bounds */
  -webkit-backdrop-filter: none; /* avoid double blur issues */
  background: none !important;
}

/* white outer ring */
#overlay.earth .social-media a::before{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -38%);
  width: calc(43% + 12px);   /* slightly bigger than button */
  height: calc(43% + 12px);
  border-radius: 50%;
  background: transparent;
  border: 3px solid rgb(56 47 47 / 18%); /* bright thin ring */
  z-index: 0;
  pointer-events: none;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25)); /* extra pop */
}

/* inner dark ring (between outer ring and icon) */
#overlay.earth .social-media a::after{
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 69%;                 /* smaller ring inside */
  height: 69%;
  border-radius: 50%;
  background: transparent;
  border: 2px solid #fff;  /* dark inner ring */
  z-index: 1;
  pointer-events: none;
}

/* make sure the icon image stays on top and sized */
#overlay.earth .social-media a img{
  position: relative;
  z-index: 3;
  width: 25px !important;
  /* height: 25px !important; */
  display: block;
  object-fit: contain;
}
div#address div img{
  width: 25px !important;
}
#club img{
  margin-bottom: -1px;
}
#website img{
  margin-bottom: -3px;
}

@media screen and (min-width:365px) {
  #overlay.earth div.modal-content{
    width: 350px;
  }
}
@media screen and (max-width:367px) {
  #overlay.earth div.modal-content{
    width: 290px;
  }
}